package com.qianfeng.xinyihezi.xinyihezi.config;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * 作者：王加威 on 2016/11/13 12:22
 */

public interface MyRetrofit {
    @GET(MyNetConfig.PATH1)
    Call<ResponseBody> getData();
    @GET("activity/?search_type=21&page_size=10&app_ver=2.4.0&mac=B8%3A70%3AF4%3A10%3A6F%3A4E&unique_id=864394010184705&channel_src=wandoujia&from_type=Android")
    Call<ResponseBody> getAllData(@Query("activity_cat_id") int page, @Query("page") int page1);
    @GET("homepage/?search_type=14&resolution=1080&app_ver=2.4.0&mac=B8%3A70%3AF4%3A10%3A6F%3A4E&unique_id=864394010184705&channel_src=wandoujia&from_type=Android")
    Call<ResponseBody> getZhuTiData(@Query("cat_id") int go_id);
    @GET("good/?search_type=5&page_size=10&gift_cat_id=14&app_ver=2.4.0&mac=B8%3A70%3AF4%3A10%3A6F%3A4E&unique_id=864394010184705&channel_src=wandoujia&from_type=Android")
    Call<ResponseBody> getGoodsData(@Query("goods_search_code")int id,@Query("page")int page);
    @GET("activity/?search_type=7&app_ver=2.4.0&mac=B8%3A70%3AF4%3A10%3A6F%3A4E&unique_id=864394010184705&channel_src=wandoujia&from_type=Android")
    Call<ResponseBody> getXinYiData(@Query("activity_id")String id);
    @GET("activity/?search_type=7&free_postage=0&is_stock=0&max_price=-1&min_price=0&app_ver=2.4.0&mac=B8%3A70%3AF4%3A10%3A6F%3A4E&unique_id=864394010184705&channel_src=wandoujia&from_type=Android")
    Call<ResponseBody> getRbData(@Query("activity_id")String id,@Query("filter_type")String type);
    @GET("good/?search_type=22&app_ver=2.4.0&mac=B8%3A70%3AF4%3A10%3A6F%3A4E&unique_id=864394010184705&channel_src=wandoujia&from_type=Android")
    Call<ResponseBody> getRankingData();
    @GET("good/?search_type=23&page=1&page_size=10&app_ver=2.4.0&mac=B8%3A70%3AF4%3A10%3A6F%3A4E&unique_id=864394010184705&channel_src=wandoujia&from_type=Android")
    Call<ResponseBody> getRank(@Query("rc_id")String id);
}
